Calculate the area of a parallelogramΒΆ
Calculate the area of a parallelogram.
Note:
A parallelogram is a quadrilateral with opposite sides parallel
(and therefore opposite angles equal). A quadrilateral with equal
sides is called a rhombus, and a parallelogram whose angles
are all right angles is called a rectangle.
Test Data:
Length of base: 5
Height of parallelogram: 6
Expected output:
Area is: 30.0
base = float(input('Length of base: '))
height = float(input('Measurement of height: '))
area = base * height
print("Area is: ", area)
Output:
Length of base: 5
Measurement of height: 6
Area is: 30.0